From 6976476d8c502fa762076493b56ae1ee7d5106e1 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Thu, 5 Mar 2009 17:50:05 +0000 Subject: [PATCH] xend: Handle missing s3_integrity value, default to zero. Signed-off-by: Keir Fraser --- tools/python/xen/xend/XendDomainInfo.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/python/xen/xend/XendDomainInfo.py b/tools/python/xen/xend/XendDomainInfo.py index 9a217caa68..ec3ae99a86 100644 --- a/tools/python/xen/xend/XendDomainInfo.py +++ b/tools/python/xen/xend/XendDomainInfo.py @@ -2212,7 +2212,9 @@ class XendDomainInfo: if security.has_authorization(ssidref) == False: raise VmError("VM is not authorized to run.") - s3_integrity = self.info['s3_integrity'] + s3_integrity = 0 + if self.info.has_key('s3_integrity'): + s3_integrity = self.info['s3_integrity'] flags = (int(hvm) << 0) | (int(hap) << 1) | (int(s3_integrity) << 2) try: -- 2.30.2